import redis from "socket.io-redis";
export default {
  on          : true, //是否开启 WebSocket
  type        : "papaya", //使用的 WebSocket 库类型，默认为 socket.io
  allow_origin: "", //允许的 origin
  adp         : undefined, // socket 存储的 adapter，socket.io 下使用
  path        : "", //url path for websocket
  messages    : {
    open     : "socket/index/open",
    close    : "socket/index/close",
    message  : "socket/message/index",
    subscribe: 'socket/subscribe/index',
    publish  : 'socket/publish/index',
    reply    : "socket/reply/index",
    command  : "socket/command/index"
  },
  options: {
    
  },
  adapter: {
    "socket.io": {
      // adp: function(){
      //   return redis({ host: "127.0.0.1", port: 6379 });
      // }
    }
  }
};